combit List & Label 30 - .NET Help
Programming Introduction / Examples / General / Print Card With Simple Placeholders
Print Card With Simple Placeholders

Printing a full-page project which simply contains placeholders set by the application is achieved easily by binding it to a suitable object.

public class DataSource
{
    public string Text1 { get; set; }
    public double Number1 { get; set; }
    // ...
}

//...

using (ListLabel LL = new ListLabel())
{
    // Prepare data source
    object dataSource = new DataSource { Text1 = "Test", Number1 = 1.234 };

    // Define/Assign data source
    LL.DataSource = new ObjectDataProvider(dataSource);

    // Select card as project type
    LL.AutoProjectType = LlProject.Card;

    // Call the Designer
    LL.Design();

    // Print
    LL.Print();
}